package com.budgetme.widgets;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.ImageView;

public class BudgetProgressBar extends ImageView {
	private static final String TAG = BudgetProgressBar.class.getName();

	private final Paint paint = new Paint(Paint.ANTI_ALIAS_FLAG);

	// Blue
	public static final int DEFAULT_COLOR = Color.argb(0xFF, 0x33, 0xB5, 0xE5);
	
	private double mBudget;
	
	
	public BudgetProgressBar(double budget, Context context) {
		super(context);
		
		mBudget = budget;

	}
	
	
	@Override
    protected void onDraw(Canvas canvas) {
		Log.d(TAG, "onDraw");
		
		Rect rect = new Rect(0, 0, getWidth(), getHeight());
		Log.w(TAG, "" + getWidth());
		Log.w(TAG, "" + getHeight());

        paint.setStyle(Style.FILL);
        paint.setColor(DEFAULT_COLOR);
        paint.setAntiAlias(true);
        
        canvas.drawRect(rect, paint);

    }

	
}
